ArrowIcon

constructor(direction: Int, isEnabled: Boolean)

Create an ArrowIcon with the given direction and enablement status and the default size and length.

Parameters

direction

Direction of the arrow, could be SwingConstants.SOUTH, SwingConstants.NORTH, SwingConstants.EAST, or SwingConstants.WEST

isEnabled

Represents the enable status of the ArrowIcon. Paint in foreground text color if true, or disabled color if false.


constructor(direction: Int, isEnabled: Boolean, length: Int, width: Int)

Create an ArrowIcon with given direction, enable status, shape, and size. To get the real height and width of the icon need to use getIconHeight and getIconWidth.

Parameters

direction

direction of the arrow, could be SwingConstants.SOUTH, SwingConstants.NORTH, SwingConstants.EAST, or SwingConstants.WEST

isEnabled

Represents the enable status of the ArrowIcon. Paint in foreground text color if true, or disabled color if false.

length

The length of the icon, see the class notes. If less than zero, length is set to zero.

width

The width of the icon, see the class notes. If less than one, width is set to one.